package OOAP;

/**
 * 使用类来定义洗衣机
 */
//class关键字定义类
public class WashingMachine {
//属性
    //品牌
    public String brand;
    //型号
    public String type;
    //重量
    public double weight;
    //长宽高
    public double length;
    public double width;
    public double height;
    //颜色
    public String color;
//方法
    //洗衣服
    public void washClothes(){
        System.out.println("washing clothes...");
    }

    //甩干功能
    public void dryClothes(){
        System.out.println("drying clothes...");
    }

    //定时关闭
    public void closeTime(int time){
        System.out.println("delay a"+time+"will close machine");
    }
}

